package com.example.demo.repository;

import com.example.demo.entity.Product.ProductDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ProductDetailRepository extends JpaRepository<ProductDetail, String> {
    @Query("select p from ProductDetail p where p.billNo = :billNo")
    ProductDetail fetchDetail(String billNo);
}
